package cn.tedu.springbootmybatis.pojo.dto;

import cn.tedu.springbootmybatis.Constant.SystemConstant;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author : jwp
 * @description : 初始化dto
 * @createDate : 2025/3/25 8:45
 */
@Data
public class IdDto {

    /**
     * 用户id
     */
    private Long id;

    /**
     * 是否删除
     */
    private String deleted;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public IdDto() {
        this.deleted = SystemConstant.ZERO;
        this.createBy = SystemConstant.ADMIN;
        this.createTime = LocalDateTime.now();
        this.updateBy = SystemConstant.ADMIN;
        this.updateTime = LocalDateTime.now();
    }
}
